function view()
{
  window.location =
    'show/' + $('#service').val() + '/' + $('#x').val() + '/' + $('#y').val() + '/' + $('#z').val();
}

$(function()
{
  jQuery.getJSON(
    'ajax/services/',
    function(data)
    {
      var services = $('#services').empty();
      
      $.each(
        data,
        function()
        {
          services.append('<li>' + this.name + '</li>');
        });
    });
})
